﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class ChiTietThucDonBUS
    {
        private ChiTietThucDonDTO info = new ChiTietThucDonDTO();
        private ChiTietThucDonDAO data = new ChiTietThucDonDAO();

        public void ThemThucdon(ChiTietThucDonDTO thucdon)
        {
            data.ThemThucdon(thucdon);
        }

        public List<ChiTietThucDonDTO> GetChiTietThucdon(int thucdon)
        {
            return data.GetChiTietThucdon(thucdon);
        }

        public void CapNhatChiTietMonAn(ChiTietThucDonDTO dto)
        {
            data.CapNhatChiTietThucDon(dto);
        }

        public void XoaChiTietThucDon(int mamonan, int mannvl)
        {
            data.XoaChiTietThucDon(mamonan, mannvl);
        }
    }
}
